﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace dzs.Web.rights
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int rights_id=(Convert.ToInt32(strid));
					ShowInfo(rights_id);
				}
			}
		}
		
	private void ShowInfo(int rights_id)
	{
		dzs.BLL.rights bll=new dzs.BLL.rights();
		dzs.Model.rights model=bll.GetModel(rights_id);
		this.lblrights_id.Text=model.rights_id.ToString();
		this.lblrights_name.Text=model.rights_name;
		this.lblrights_url.Text=model.rights_url;
		this.lblrights_order.Text=model.rights_order.ToString();
		this.lblparent_id.Text=model.parent_id.ToString();

	}


    }
}
